<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <%@ include file="/WEB-INF/views/include/head.jsp"%> 
        <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css">
        <script type="text/javascript">
            function delUser(){
                $.post("${ctx}/sys/user/delete?id=${user.id}",'',function(result){
                	tipParent(result.message);
                    if(result.statusCode==STATUSCODEOK){
                        window.parent.frames[0].location.reload();
                        closeWin(); 
                     }
                },'json');
           }
        </script>
    </head>
    <body>
        <div class="myshop clearfix">
        <!-- 查看店铺人员 -->
            <p class="myshoptop fl"><spring:message code="user_show_shopUser"/></p>
            <div class="fr">
                <c:if test="${shopId!=null&&shopId!=''&&shopId!=-1}">
	                <shiro:hasPermission name="sys:user:edit">
	                    <div class="topBtn" onclick="popup('935px','550px','${ctx}/sys/user/form?id=${user.id}');closeWin()">
	                        <img src="${ctxStatic}/images/btn-bj.png">
	                    </div>

	                    <div class="topBtn" onclick="del(delUser)">
	                        <img src="${ctxStatic}/images/btn-sc.png">
	                    </div>
	                </shiro:hasPermission>
	            </c:if>
                <div class="topBtnClose" onclick="closeWin()">
                    <img src="${ctxStatic}/images/btn-close.png">
                </div>
            </div>
        </div>
        <div class="middle myshop_middle">
            <div class="data clearfix">
           <!-- 姓 -->
                <div class="ch list fl">
                    <p class="data_id_list"><spring:message code="user_firstName"/>：</p>
                    <p class="rtname fl">${user.firstName}</p>
                </div>
                <!-- 联系电话 -->
                <div class="ch list fr">
                    <p class="data_id_list"><spring:message code="user_telNo"/>：</p>
                    <p class="rtname fl">${user.telNo}</p>
                </div>
            </div>
            <div class="data clearfix">
            <!-- 名 -->
                <div class="ch list fl">
                    <p class="data_id_list"><spring:message code="user_show_lastName"/>：</p>
                    <p class="rtname fl">${user.lastName}</p>
                </div>
                <div class="ch list fr">
                    <!-- 传真 -->
                    <p class="data_id_list"><spring:message code="user_show_faxNo"/>：</p>
                    <p class="rtname fl">${user.faxNo}</p>
                </div>
            </div>
            <div class="data clearfix">
                <div class="ch list fl">
                    <!-- 登录名 -->
                    <p class="data_id_list"><spring:message code="user_show_loginName"/>：</p>
                    <p class="rtname fl">${user.loginName}</p>
                </div>
                <div class="ch list fr">
                <!-- Email -->
                    <p class="data_id_list">Email：</p>
                    <p class="rtname fl">${user.email}</p>
                </div>
            </div>
<!--             <div class="data clearfix"> -->
<!--                 <div class="ch list fl"> -->
<!--                     国别 -->
<%--                     <p class="data_id_list"><spring:message code="user_show_country"/>：</p> --%>
<%--                     <p class="rtname fl">${fns:getDictName(user.country)}</p> --%>
<!--                 </div> -->
<!--                   <div class="ch list fr"> -->
<!--                     城市 -->
<%--                     <p class="data_id_list"><spring:message code="user_show_city"/>：</p> --%>
<%--                     <p class="rtname fl">${fns:getDictName(user.city)}</p> --%>
<!--                 </div> -->
<!--             </div> -->
            <div class="data clearfix">
                <div class="ch list fl">
                    <!-- 性别 -->
                    <p class="data_id_list"><spring:message code="user_sex"/>：</p>
                    <p class="rtname fl">${fns:getDictName(user.sex)}</p>
                </div>
               <div class="ch list fr">
                    <!-- 人员角色 -->
                    <p class="data_id_list"><spring:message code="user_role"/>：</p>
                    <p class="rtname fl">${user.role.roleName}</p>
                </div>
            </div>
            <div class="data clearfix">
                <div class="ch list fl">
                    <!-- 手机 -->
                    <p class="data_id_list"><spring:message code="user_mobile"/>：</p>
                    <p class="rtname fl">${user.mobile}</p>
                </div>
                <div class="ch list fr">
                    <!--出生年月  -->
                    <p class="data_id_list"><spring:message code="user_birthDate"/>：</p>
                    <p class="rtname fl"><fmt:formatDate value="${user.birthDate}" pattern="yyyy-MM-dd"/> </p>
                </div>
               
            </div>
            <div class="data clearfix">
                <div class="ch list fl">
                    <!-- 详细地址 -->
                    <p class="data_id_list"><spring:message code="user_address"/>：</p>
                    <p class="rtname fl"  data-toggle="tooltip" title="${user.address}">${user.address}</p>
                </div>
                <div class="ch list fr">
                    <!-- 备注 -->
                    <p class="data_id_list"><spring:message code="user_remarks"/>：</p>
                    <p class="rtname fl"  data-toggle="tooltip" title="${user.remarks}">${user.remarks}</p>
                </div>
            </div>
        </div>
        <script>
            var windowH = window.innerHeight
                ||document.documentElement.clientHeight
                ||document.body.clientHeight
            $('.middle').css('height',windowH - 54);
            $(window.parent.$("iframe").css('height',windowH - 4));
        </script>
    </body>
</html>